﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucManagerPhotos.ascx.cs"
    Inherits="en_ucControl_ManagerPhotos" %>
<div id="content_center">
    <div class="content_center_padding">
        <div class="content_center_padding">
            <h1>
                Manage your Photos</h1>
            <br />
            <asp:GridView ID="grdImageByIDAcc" CssClass="yui" Width="370px" runat="server" AutoGenerateColumns="False"
                OnRowDataBound="grdImageByIDAcc_RowDataBound">
                <Columns>
                    <asp:BoundField HeaderText="Photo Group Name" DataField="AlbumName">
                        <ItemStyle Font-Bold="True" />
                    </asp:BoundField>
                    <asp:BoundField DataField="SL" HeaderText="Photos" />
                    <asp:TemplateField HeaderText="Edit">
                        <ItemTemplate>
                            <asp:ImageButton ID="btnUpdate" runat="server" ToolTip="Edit Album" CommandName="Confirm"
                                OnClick="btnUpdate_Click" CommandArgument='<%# Eval("IDAlbum") %>' ImageUrl="~/Admin/img/config.png" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Del">
                        <ItemTemplate>
                            <asp:ImageButton ID="btnConfirm" runat="server" ToolTip="Xóa Album" CommandName="Delete"
                                OnClick="btnConfirm_Click" CommandArgument='<%# Eval("IDAlbum") %>' ImageUrl="~/Admin/img/Del.png" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="clsGrdHeader" />
                <RowStyle CssClass="clsGrdRow" />
                <AlternatingRowStyle CssClass="clsGrdAlternateRow" />
                <PagerStyle CssClass="clsPage" />
            </asp:GridView>
        </div>
    </div>
</div>
<div id="content_right">
    <div class="right_content">
        <p class="font_weight">
            <label style="color: #27ae07;">
                Photos group name:</label>
            <asp:Label ID="lblAlbumName" Text="#N/A" runat="server"></asp:Label></p>
        <p class="padding_center">
            <asp:HyperLink ID="hypGetPhotoGroup" runat="server" NavigateUrl="~/en/GetCodeImage.aspx?keepThis=true&TB_iframe=true&width=700&height=300&ico=images/Get.png"
                CssClass="thickbox" ToolTip="Get Code Image"><div class="button_bt">
                                    <span style="color:White">Get photos group code</span></div></asp:HyperLink>
        </p>
        <div class="right_items">
            
                <asp:Panel ID="pnImage" runat="server">
                    <asp:Repeater ID="reImageByAlbum" runat="server">
                        <ItemTemplate>
                            <div class="right_img">
                                <asp:HyperLink ID="imgImage" runat="server" NavigateUrl='<%# "~/Admin/img/images/"+Eval("ImageURL") %>'
                                    rel="example_group">
                                    <asp:Image ID="imageAl" runat="server" Style="width: 95px; height: 65px" ImageUrl='<%#"~/Admin/img/images/"+Eval("ImageURL") %>' />
                                </asp:HyperLink>
                                <asp:HyperLink ID="hyEdithtml" runat="server" NavigateUrl='<%#"~/en/GetCodeImage.aspx?IdImg=" + Eval("IDImage") + "&keepThis=true&TB_iframe=true&width=700&height=300&ico=images/Get.png" %>'
                                    CssClass="thickbox" ToolTip="Get Code Image"><div class="button_right">
                                    Get Code</div></asp:HyperLink>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </asp:Panel>
            
        </div>
    </div>
</div>
